/**
 * API 模块统一导出
 */

// 导出 HTTP 实例
export { http, formDataHttp } from "./http";
export type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "./http";

// 导出全局类型
export type {
    ResponseType,
    ListResponseType,
    PaginationType,
    BaseListItemType,
    FormInstanceType,
    InputInstanceType,
    TooltipInstanceType,
    CascaderInstanceType,
    CascaderPropsType,
} from "./global.type";

// 导出错误处理工具
export { ErrorCode, isApiResponseError, getErrorMessage } from "./error-handler";

// 导出所有服务
export * from "./api/base";
